import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:zootix/util/zt_screen_adaper_util.dart';

class ZtEmpty extends StatelessWidget {
  String? text;
  ZtEmpty({super.key, this.text});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [
        Center(
            child: Image(
                height: ZtScreenAdaper.height(130),
                image: AssetImage('assets/images/empty_icon.png'))),
        Text(
          text ?? '',
          textAlign: TextAlign.center,
          style: TextStyle(fontSize: ZtScreenAdaper.sp(18)),
        ),
      ]),
    );
  }
}
